﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;

namespace Hydrogen.MarkovChain.SolidMap2DScene
{
    /// <summary>
    /// 
    /// </summary>
    public abstract class SolidCacheBase
    {
        /// <summary>
        /// 设置颜色缓存
        /// </summary>
        public abstract void SetSolid(SolidType solid, int x, int y);
        /// <summary>
        /// 移除颜色缓存
        /// </summary>
        public abstract void RemoveSolid(SolidType solid, int x, int y);
        /// <summary>
        /// 清空缓存
        /// </summary>
        public abstract void Clear();

        /// <summary>
        /// 获取这个颜色的所有位置
        /// </summary>
        /// <param name="random">是否打乱顺序</param>
        public abstract List<Vector2Int> GetSolidPos(SolidType solid, bool random);
    }
}
